﻿@model Solution.Business.Entities.Advertise

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Advertise</legend>

    <div class="display-label">Tên quảng cáo :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">Hình ảnh đại diện :</div>
    <div class="display-field">
       <img src="@Model.Image" />
    </div>

    <div class="display-label">Trang liên kết :</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Link)
    </div>

    <div class="display-label">Vị trí quảng cáo :</div>
    <div class="display-field">
        @{
            if(Model.Position == 1)
            {
                @Html.Label("Logo")
            }
            else
            {
                @Html.Label("Banner")
            }
            }
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) |
    @Html.ActionLink("Back to List", "Index")
</p>
